

/*
 *文字1，14，17，18，20，21，22，24
 */
function content1(text,num){
    var text1=text.slice(0,6);
    var text2=text.slice(6,13);
    var text3=text.slice(13,27);
    var text4=text.slice(27,31);
    var text5=text.slice(31,37);
    // console.log(text1,text2,text3,text4,text5)
   if(text5){
        var word=text1 + "<br/>"+ text2 +"<br/>"+  text3 +"<br/>"+  text4 +"<br/>"+ text5;
    }else if(text4){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3 +"<br/>"+ text4;
    }else if(text3){
        var word=text1 +"<br/>"+ text2 +"<br/>"+ text3;
    }else if(text2){
        var word=text1 +"<br/>"+ text2;
    }else if(text1){
        var word=text1;
    }else{
        var word="";
    }
    $('.text'+num).html(word);
}
var ROOT='http://www.youyiku-yishu.cn';
function t1(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content1">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img1" onclick="renewal(1,1)" data="-4.5">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang1"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In In1">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,1)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入38个字" maxlength="39" value=""  class="input input1"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text1" onclick="Version(1,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入38个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,1);
            }
        }

    })
}
function t2(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content2">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img2" onclick="renewal(1,2)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang2"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,2)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入38个字" maxlength="40" value=""  class="input input2"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text2" onclick="Version(2,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入38个字";
        }
        console.log(text);
        page += '</div>';
        page += '</div>';
        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b2_1.png" class="content2_img1"/>';
        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b2_2.png" class="content2_img2"/>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,2);
            }
        }

    })
}
function t3(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content3">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img3" onclick="renewal(1,3)" data="2.6">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang3"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In In1">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,3)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入20个字" maxlength="23" value=""  class="input input3"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text3" onclick="Version(3,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{
           		page+=text;
            }

        }
        else{
            page+="最多输入20个字";
        }
        page += '</div>';
        page += '</div>';
        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b3_1.png" class="content3_img1"/>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
//      if(text){
//          if(text.toString().indexOf('pload')<0){
//              content1(text,3);
//          }
//      }

    })
}
function t4(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content4">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img4" onclick="renewal(1,4)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang4"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,4)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入40个字" maxlength="43" value=""  class="input input4"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text4" onclick="Version(4,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入40个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,4);
            }
        }

    })
}
function t5(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content5">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img5" onclick="renewal(1,5)" data="-6">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang5"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img6" onclick="renewal(2,6)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang6"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In In_5">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,5)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入40个字" maxlength="43" value=""  class="input input5"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text5" onclick="Version(5,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入43个字";
        }
        page += '</div>';
        page += '</div>';
        page += '<div class="In In_6">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(2,6)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="" maxlength="" value=""  class="input input6"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text6" onclick="Version(6,2)" data="1">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="只能语音输入";
        }
        page += '</div>';
        page += '</div>';
        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b5_1.png" class="content5_img1"/>';
        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b5_2.png" class="content5_img2"/>';
        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b5_3.png" class="content5_img3"/>';
        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b5_4.png" class="content5_img4"/>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,5);
            }
        }
        if(text1){
            if(text1.toString().indexOf('pload')<0){
                content1(text1,6 );
            }
        }

    })
}
function t6(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content6">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img7" onclick="renewal(1,7)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang7"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img8" onclick="renewal(2,8)" data="4">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang8"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In In_7">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,7)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入40个字" maxlength="43" value=""  class="input input7"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text7" onclick="Version(7,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入40个字";
        }
        page += '</div>';
        page += '</div>';
        page += '<div class="In In_8">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(2,8)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="" maxlength="" value=""  class="input input8"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text8" onclick="Version(8,2)" data="1">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="只能语音输入";
        }
        page += '</div>';
        page += '</div>';
         page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b6_1.png" class="content6_img1"/>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,7);
            }
        }
        if(text1){
            if(text1.toString().indexOf('pload')<0){
                content1(text1,8);
            }
        }

    })
}
function t7(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content7">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img9" onclick="renewal(1,9)" data="2">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang9"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img10" onclick="renewal(2,10)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang6"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In In_9">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,9)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入40个字" maxlength="43" value=""  class="input input9"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text9" onclick="Version(9,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入40个字";
        }
        page += '</div>';
        page += '</div>';
        page += '<div class="In In_10">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(2,10)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="" maxlength="" value=""  class="input input10"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text10" onclick="Version(10,2)" data="1">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="只能语音输入";
        }
        page += '</div>';
        page += '</div>';
        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b7_1.png" class="content7_img1"/>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,9);
            }
        }
        if(text1){
            if(text1.toString().indexOf('pload')<0){
                content1(text1,10);
            }
        }

    })
}
function t8(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content8">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img11" onclick="renewal(1,11)" data="-4">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang11"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img12" onclick="renewal(2,12)" data="5">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang12"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In In_11">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,11)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入40个字" maxlength="43" value=""  class="input input11"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text11" onclick="Version(11,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入40个字";
        }
        page += '</div>';
        page += '</div>';
        page += '<div class="In In_12">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(2,12)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="" maxlength="" value=""  class="input input12"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text12" onclick="Version(12,2)" data="1">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="只能语音输入";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,11);
            }
        }
        if(text1){
            if(text1.toString().indexOf('pload')<0){
                content1(text1,12);
            }
        }

    })
}
function t9(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content9">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img13" onclick="renewal(1,13)" data="-7">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang13"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img14" onclick="renewal(2,14)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang14"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,13)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入40个字" maxlength="43" value=""  class="input input13"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text13" onclick="Version(13,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入40个字";
        }
        page += '</div>';
        page += '</div>';
         page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b9_1.png" class="content9_img1"/>';
        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b9_3.png" class="content9_img2"/>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,13);
            }
        }

    })
}
function t10(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content10">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img15" onclick="renewal(1,15)" data="3.5">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang15"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img16" onclick="renewal(2,16)" data="-11.5">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang16"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img17" onclick="renewal(3,17)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang17"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,14)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入40个字" maxlength="43" value=""  class="input input14"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text14" onclick="Version(14,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入40个字";
        }
        page += '</div>';
        page += '</div>';   
        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b10_1.png" class="content10_img1"/>';
        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b10_2.png" class="content10_img2"/>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,14);
            }
        }
    })
}
function t11(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content11">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img18" onclick="renewal(1,18)" data="-8.5">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang18"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img19" onclick="renewal(2,19)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang19"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img20" onclick="renewal(3,20)" data="5.5">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang20"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In In_15">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,15)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入40个字" maxlength="43" value=""  class="input input15"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text15" onclick="Version(15,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入40个字";
        }
        page += '</div>';
        page += '</div>';
        page += '<div class="In In_16">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(2,16)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="" maxlength="" value=""  class="input input16"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text16" onclick="Version(16,2)" data="1">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="只能语音输入";
        }
        page += '</div>';
        page += '</div>';  
        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b11_1.png" class="content11_img1"/>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,15);
            }
        }
        if(text1){
            if(text1.toString().indexOf('pload')<0){
                content1(text1,16);
            }
        }
    })
}
function t12(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content12">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img21" onclick="renewal(1,21)" data="-3.5">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang21"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img22" onclick="renewal(2,22)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang22"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img23" onclick="renewal(3,23)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang23"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In In_17">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,17)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入40个字" maxlength="43" value=""  class="input input17"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text17" onclick="Version(17,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入40个字";
        }
        page += '</div>';
        page += '</div>'; 
        page += '<div class="In In_18">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(2,18)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="" maxlength="" value=""  class="input input18"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text18" onclick="Version(18,2)" data="1">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="只能语音输入";
        }
        page += '</div>';
        page += '</div>';  
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,17);
            }
        }
         if(text1){
            if(text1.toString().indexOf('pload')<0){
                content1(text1,18);
            }
        }
    })
}
function t13(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content13">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img24" onclick="renewal(1,24)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang24"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img25" onclick="renewal(2,25)" data="-3.5">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang25"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img26" onclick="renewal(3,26)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang26"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,19)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入40个字" maxlength="43" value=""  class="input input19"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text19" onclick="Version(19,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入40个字";
        }
        page += '</div>';
        page += '</div>';   
         page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b13_1.png" class="content13_img1"/>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,19);
            }
        }
    })
}
function t14(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content14">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img27" onclick="renewal(1,27)" data="-3.5">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang27"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img28" onclick="renewal(2,28)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang28"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img29" onclick="renewal(3,29)" data="12.5">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang29"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In In_20">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(2,20)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入30个字" maxlength="33" value=""  class="input input20"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text20" onclick="Version(20,2)">';
        if(text1){
            if(text1.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text1+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入30个字";
        }
        page += '</div>';
        page += '</div>'; 
        page += '<div class="In In_21">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,21)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入40个字" maxlength="43" value=""  class="input input21"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text21" onclick="Version(21,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入40个字";
        }
        page += '</div>';
        page += '</div>';    
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,21);
            }
        }
         if(text1){
            if(text1.toString().indexOf('pload')<0){
                content1(text1,20);
            }
        }
    })
}
function t15(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content15">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img30" onclick="renewal(1,30)" data="-2.5">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang30"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img31" onclick="renewal(2,31)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang31"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img32" onclick="renewal(3,32)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang32"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';      
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,22)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入70个字" maxlength="70" value=""  class="input input22"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text22" onclick="Version(22,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入70个字";
        }
        page += '</div>';
        page += '</div>'; 
        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b15_1.png" class="content15_img1"/>';
        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b15_2.png" class="content15_img2"/>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,22);
            }
        }
        
    })
}
function t16(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content16">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img33" onclick="renewal(1,33)" data="-3.5">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang33"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img34" onclick="renewal(2,34)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang34"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img35" onclick="renewal(3,35)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang35"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In In_23">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,23)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入40个字" maxlength="43" value=""  class="input input23"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text23" onclick="Version(23,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入40个字";
        }
        page += '</div>';
        page += '</div>';
        page += '<div class="In In_24">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(2,24)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="" maxlength="" value=""  class="input input24"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text24" onclick="Version(24,2)" data="1">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="只能语音输入";
        }
        page += '</div>';
        page += '</div>';
         page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b16_1.png" class="content16_img1"/>';
        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b16_2.png" class="content16_img2"/>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content2(text,23);
            }
        }
         if(text1){
            if(text1.toString().indexOf('pload')<0){
                content1(text1,24);
            }
        }
    })
}
function t17(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content17">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img36" onclick="renewal(1,36)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang36"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img37" onclick="renewal(2,37)" data="-5.5">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang37"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img38" onclick="renewal(3,38)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang38"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
         page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img39" onclick="renewal(4,39)" data="3.5">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==4){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang39"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,25)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入30个字" maxlength="35" value=""  class="input input25"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text25" onclick="Version(25,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{
				page+=text;
            }

        }
        else{
            page+="最多输入30个字";
        }
        page += '</div>';
        page += '</div>';
       page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b17_1.png" class="content17_img1"/>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
//      if(text){
//          if(text.toString().indexOf('pload')<0){
//              content1(text,25);
//          }
//      }
    })
}
function t18(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content18">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img40" onclick="renewal(1,40)" data="-2.5">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang40"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img41" onclick="renewal(2,41)" data="4.5">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang41"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img42" onclick="renewal(3,42)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang42"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
         page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img43" onclick="renewal(4,43)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==4){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang43"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,26)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入40个字" maxlength="43" value=""  class="input input26"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text26" onclick="Version(26,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入40个字";
        }
        page += '</div>';
        page += '</div>';
        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b18_1.png" class="content18_img1"/>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,26);
            }
        }
    })
}
function t19(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content19">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img44" onclick="renewal(1,44)" data="-9.5">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang44"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img45" onclick="renewal(2,45)" data="12.5">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang45"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img46" onclick="renewal(3,46)" data="-3.5">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang46"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
         page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img47" onclick="renewal(4,47)" data="5.5">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==4){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang47"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,27)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入40个字" maxlength="43" value=""  class="input input27"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text27" onclick="Version(27,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入40个字";
        }
        page += '</div>';
        page += '</div>';
       page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b19_1.png" class="content19_img1"/>';
       page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b19_2.png" class="content19_img2"/>';
       page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b19_3.png" class="content19_img3"/>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,27);
            }
        }
    })
}
function t20(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content20">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img48" onclick="renewal(1,48)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang48"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img49" onclick="renewal(2,49)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang49"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img50" onclick="renewal(3,50)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang50"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
         page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img51" onclick="renewal(4,51)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==4){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang51"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,28)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入40个字" maxlength="43" value=""  class="input input28"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text28" onclick="Version(28,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入40个字";
        }
        page += '</div>';
        page += '</div>';
        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b20_1.png" class="content20_img1"/>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,28);
            }
        }
    })
}
function t21(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content21">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img52" onclick="renewal(1,52)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang52"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img53" onclick="renewal(2,53)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang53"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img54" onclick="renewal(3,54)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang54"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
         page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img55" onclick="renewal(4,55)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==4){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang55"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,29)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入40个字" maxlength="43" value=""  class="input input29"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text29" onclick="Version(29,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入40个字";
        }
        page += '</div>';
        page += '</div>';
        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b21_1.png" class="content21_img1"/>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,29);
            }
        }
    })
}
function t22(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content22">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img56" onclick="renewal(1,56)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang56"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img57" onclick="renewal(2,57)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang57"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img58" onclick="renewal(3,58)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang58"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
         page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img59" onclick="renewal(4,59)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==4){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang59"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,30)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入40个字" maxlength="43" value=""  class="input input30"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text30" onclick="Version(30,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{
				page+=text;
            }

        }
        else{
            page+="最多输入40个字";
        }
        page += '</div>';
        page += '</div>';
         page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b22_1.png" class="content22_img1"/>';
        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b22_2.png" class="content22_img2"/>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
//      if(text){
//          if(text.toString().indexOf('pload')<0){
//              content1(text,30);
//          }
//      }
    })
}
function t23(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content23">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img60" onclick="renewal(1,60)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang60"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img61" onclick="renewal(2,61)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang61"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img62" onclick="renewal(3,62)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang62"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
         page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img63" onclick="renewal(4,63)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==4){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang63"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In In_31">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,31)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入40个字" maxlength="43" value=""  class="input input31"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text31" onclick="Version(31,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="最多输入40个字";
        }
        page += '</div>';
        page += '</div>';
        page += '<div class="In In_32">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(2,32)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="" maxlength="" value=""  class="input input32"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text32" onclick="Version(32,2)" data="1">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{

            }

        }
        else{
            page+="只能语音输入";
        }
        page += '</div>';
        page += '</div>';
         page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b23_1.png" class="content23_img1"/>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
        if(text){
            if(text.toString().indexOf('pload')<0){
                content1(text,31);
            }
        }
         if(text1){
            if(text1.toString().indexOf('pload')<0){
                content1(text1,32);
            }
        }
    })
}
function t24(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content24">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img64" onclick="renewal(1,64)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang64"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img65" onclick="renewal(2,65)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang65"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img66" onclick="renewal(3,66)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang66"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
         page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img67" onclick="renewal(4,67)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==4){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang67"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,33)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入30个字" maxlength="33" value=""  class="input input33"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text33" onclick="Version(33,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{
                page+=text;
            }

        }
        else{
            page+="最多输入30个字";
        }
        page += '</div>';
        page += '</div>';
        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b24_1.png" class="content24_img1"/>';
        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b24_2.png" class="content24_img2"/>';
        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/b24_3.png" class="content24_img3"/>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();             
    })
}
function t25(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content25">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';      
        page += '<div class="upload-img img68" onclick="renewal(1,68)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang68"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img69" onclick="renewal(2,69)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang69"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img70" onclick="renewal(3,70)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang70"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
         page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img71" onclick="renewal(4,71)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==4){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang71"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
          page += '<div class="photoframe">';
        page += '<div class="album-old">';   
        page += '<div class="upload-img img72" onclick="renewal(5,72)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==5){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang72"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }     
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,34)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入70个字" maxlength="70" value=""  class="input input34"/>';
        page += '</div>';
        page += '<div class="Input Input1">';
        page += '<div class="text text34" onclick="Version(34,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{
				 page+=text;
            }

        }
        else{
            page+="最多输入70个字";
        }
        page += '</div>';
        page += '</div>';          
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();       
    })
}
//插页模板
function Cha_1(){
		$('.Conter').html('');
        var page = "";
        page += '<div class="content15">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
		page += '</div>';      
        $('.Conter').html(page);
}
function Cha_2(){
		$('.Conter').html('');
        var page = "";
        page += '<div class="content16">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
		page += '</div>';      
        $('.Conter').html(page);
}
function Cha_3(){
		$('.Conter').html('');
        var page = "";
        page += '<div class="content17">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
		page += '</div>';      
        $('.Conter').html(page);
}
function Cha_4(){
		$('.Conter').html('');
        var page = "";
        page += '<div class="content18">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
         page += '<div class="In">';
        page += '<div class="qu" onclick="qu()">';
        page += '取消';
        page += '</div>';
        page += '<div class="wan" onclick="Text(1,19)">';
        page += '完成';
        page += '</div>';
        page += '<input type="text" placeholder="最多输入330个字" maxlength="330" value=""  class="input input19"/>';
        page += '</div>';
        page += '<div class="Input19">';
        page += '<div class="text text19" onclick="Version(19,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>';
            }else{
                page+=text;
            }
        }
        else{
            page+="最多输入330个字";
        }
        page += '</div>';
        page += '</div>';
		page += '</div>';      
        $('.Conter').html(page);
}
function Cha_5(inpage){
	var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
		$('.Conter').html('');
        var page = "";
        page += '<div class="content19">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe photoframe44">';
        page += '<div class="album-old">';
        page +='<div class="renewal r44" onclick="renewal(1,44)">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>更换图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img44">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                         page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang44"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                    	 page+='<img src="'+ROOT+'/'+img1+'" class="mw'+img[i].shape+' appearance'+img[i].appearance+' targetObj_'+img[i].direction+' transform_'+img[i].transform+'" id=""/>';
                    }
                }
            }
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
		page += '</div>';      
        $('.Conter').html(page);
    })
}
//模板
function moban(){
    $('.MB').html('');
    var page = "";
    var style = $('#style').val();
    page+='<div class="m1">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m1.jpg" class="MB-img" onclick="mb(1,this)"/>';
    page+='</div>';
    page+='<div class="m2">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m2.jpg" class="MB-img" onclick="mb(2,this)"/>';
    page+='</div>';
    page+='<div class="m3">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m3.jpg" class="MB-img" onclick="mb(3,this)"/>';
    page+='</div>';
    page+='<div class="m4">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m4.jpg" class="MB-img" onclick="mb(4,this)"/>';
    page+='</div>';
    page+='<div class="m5">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m5.jpg" class="MB-img" onclick="mb(5,this)"/>';
    page+='</div>';
    page+='<div class="m6">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m6.jpg" class="MB-img" onclick="mb(6,this)"/>';
    page+='</div>';
    page+='<div class="m7">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m7.jpg"class="MB-img"/ onclick="mb(7,this)">';
    page+='</div>';
    page+='<div class="m8">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m8.jpg"class="MB-img"/ onclick="mb(8,this)">';
    page+='</div>';
    page+='<div class="m9">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m9.jpg"class="MB-img"/ onclick="mb(9,this)">';
    page+='</div>';
    page+='<div class="m10">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m10.jpg"class="MB-img"/ onclick="mb(10,this)">';
    page+='</div>';
    page+='<div class="m11">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m11.jpg"class="MB-img"/ onclick="mb(11,this)">';
    page+='</div>';
    page+='<div class="m12">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m12.jpg"class="MB-img"/ onclick="mb(12,this)">';
    page+='</div>';
    page+='<div class="m13">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m13.jpg"class="MB-img"/ onclick="mb(13,this)">';
    page+='</div>';
    page+='<div class="m14">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m14.jpg"class="MB-img"/ onclick="mb(14,this)">';
    page+='</div>';
    page+='<div class="m15">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m15.jpg"class="MB-img"/ onclick="mb(15,this)">';
    page+='</div>';
     page+='<div class="m16">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m16.jpg"class="MB-img"/ onclick="mb(16,this)">';
    page+='</div>';
     page+='<div class="m17">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m17.jpg"class="MB-img"/ onclick="mb(17,this)">';
    page+='</div>';
     page+='<div class="m18">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m18.jpg"class="MB-img"/ onclick="mb(18,this)">';
    page+='</div>';
     page+='<div class="m19">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m19.jpg"class="MB-img"/ onclick="mb(19,this)">';
    page+='</div>';
     page+='<div class="m20">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m20.jpg"class="MB-img"/ onclick="mb(20,this)">';
    page+='</div>';
     page+='<div class="m21">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m21.jpg"class="MB-img"/ onclick="mb(21,this)">';
    page+='</div>';
     page+='<div class="m22">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m22.jpg"class="MB-img"/ onclick="mb(22,this)">';
    page+='</div>';
       page+='<div class="m23">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m23.jpg"class="MB-img"/ onclick="mb(23,this)">';
    page+='</div>';
     page+='<div class="m24">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m24.jpg"class="MB-img"/ onclick="mb(24,this)">';
    page+='</div>';
     page+='<div class="m25">';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m25.jpg"class="MB-img"/ onclick="mb(25,this)">';
    page+='</div>';
    $('.MB').html(page);
}
//插页
function Chaye(){
    $('.Images1').html('');
    var page = "";
     page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/c1.jpg" class="PhotoImg1 PhotoImg" onclick="chooseinsets(1,2)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m1.jpg" class="MB-img ima_mb" onclick="chooseinsets(1,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m2.jpg" class="MB-img ima_mb" onclick="chooseinsets(2,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m3.jpg" class="MB-img ima_mb" onclick="chooseinsets(3,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m4.jpg" class="MB-img ima_mb" onclick="chooseinsets(4,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m5.jpg" class="MB-img ima_mb" onclick="chooseinsets(5,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m6.jpg" class="MB-img ima_mb" onclick="chooseinsets(6,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m7.jpg" class="MB-img ima_mb" onclick="chooseinsets(7,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m8.jpg" class="MB-img ima_mb" onclick="chooseinsets(8,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m9.jpg" class="MB-img ima_mb" onclick="chooseinsets(9,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m10.jpg" class="MB-img ima_mb" onclick="chooseinsets(10,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m11.jpg" class="MB-img ima_mb" onclick="chooseinsets(11,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m12.jpg" class="MB-img ima_mb" onclick="chooseinsets(12,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m13.jpg" class="MB-img ima_mb" onclick="chooseinsets(13,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m14.jpg" class="MB-img ima_mb" onclick="chooseinsets(14,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m15.jpg" class="MB-img ima_mb" onclick="chooseinsets(15,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m16.jpg" class="MB-img ima_mb" onclick="chooseinsets(16,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m17.jpg" class="MB-img ima_mb" onclick="chooseinsets(17,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m18.jpg" class="MB-img ima_mb" onclick="chooseinsets(18,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m19.jpg" class="MB-img ima_mb" onclick="chooseinsets(19,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m20.jpg" class="MB-img ima_mb" onclick="chooseinsets(20,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m21.jpg" class="MB-img ima_mb" onclick="chooseinsets(21,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m22.jpg" class="MB-img ima_mb" onclick="chooseinsets(22,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m23.jpg" class="MB-img ima_mb" onclick="chooseinsets(23,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m24.jpg" class="MB-img ima_mb" onclick="chooseinsets(24,1)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delicacy/m25.jpg" class="MB-img ima_mb" onclick="chooseinsets(25,1)"/>';
    $('.Images1').html(page);

}
$('.more').click(function(){
	$('.ima_mb').css('display','none');
	$('.PhotoImg').css('display','block');
})
$('.more_1').click(function(){
	$('.ima_mb').css('display','block');
	$('.PhotoImg').css('display','none');
})
